package com.lkd.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lkd.base.ResponseResult;
import com.lkd.domain.Business;
import com.lkd.pageParam.RegionDetailsPageParam;
import com.lkd.service.IBusinessService;
import com.lkd.vo.RegionDetailsVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.lkd.base.ResponseResult.success;

@RestController
@Api("商圈管理相关接口")
@RequestMapping("/api/vm-service/businessType")
public class  BusinessController
{
    @Autowired
    private IBusinessService businessService;
    @ApiOperation("查询所有商圈")
    @GetMapping
    public ResponseResult<List<Business>> getBusinessList(){
        return success(businessService.list());
    }

}
